@use '@angular/material' as mat;

@mixin question-color($theme) {
  $config: mat.m2-get-color-config($theme);
  $foreground: map-get($config, foreground);
  $background: map-get($config, background);
  $primary: map-get($config, primary);
  $accent: map-get($config, accent);
  $warn: map-get($config, warn);

  .question {
    background-color: mat.m2-get-color-from-palette($background, card);
    @include mat.elevation(
      3,
      mat.m2-get-color-from-palette($foreground, divider),
      0.3
    );
  }
  .comment {
    background-color: mat.m2-get-color-from-palette($background, background);
    .comment-form {
      @include mat.elevation(
        3,
        mat.m2-get-color-from-palette($foreground, divider),
        0.6
      );
    }
    .comment-list {
      background-color: mat.m2-get-color-from-palette($background, card);
      @include mat.elevation(
        3,
        mat.m2-get-color-from-palette($foreground, divider),
        0.6
      );
      .empty {
        .mat-icon {
          font-size: 60px;
          color: mat.m2-get-color-from-palette($primary, 200);
        }
      }
      .comment-box {
        .time {
          color: mat.m2-get-color-from-palette($foreground, text, 0.4);
        }
      }
    }
  }
}
